<!--
<h1>Trip</h1>
<form method='POST' action='' id='createTrip'>
Title:
<input type="input" id="title" value="<?php echo $this->trip->title?>">
<br/>
Description:
<textarea row="3" id="description"><?php echo $this->trip->description?></textarea>
-->
<?php 
if (!empty($this->placeMarks)) {
?>
<h1>My PlaceMarks:</h1>
<?php
$index = 0;
foreach($this->placeMarks as $placeMark) {
	++$index;
?>
    <div>
    <div id="showEditPlaceMark<?php echo $placeMark->latitude."-".$placeMark->longitude?>">
    <input type="hidden" id="lat" value="<?php echo $placeMark->latitude?>">
    <input type="hidden" id="lng" value="<?php echo $placeMark->longitude?>">
    <?php echo $index?>.<a href="javascript:void(0)" id="show"><img src="<?php echo $placeMark->fileUrl;?>" alt="<?php echo $placeMark->presentName?>" border="0" /></a>
    </div>
    
    <div id="editPlaceMark<?php echo $placeMark->latitude."-".$placeMark->longitude?>">
        <input type="hidden" id="lat" value="<?php echo $placeMark->latitude?>">
        <input type="hidden" id="lng" value="<?php echo $placeMark->longitude?>">
        Name:<input type="input" id="name" value="<?php echo $placeMark->name?>"><br>
        Description:<textarea row="3" id="description"><?php echo $placeMark->description?></textarea><br>
        <a href="javascript:void(0)" id="savePlaceMark" onclick="savePlaceMark(<?php echo $placeMark->latitude?>, <?php echo $placeMark->longitude?>)">Save</a>&nbsp;
	    <a href="javascript:void(0)" onclick="removePlaceMark(<?php echo $placeMark->latitude?>, <?php echo $placeMark->longitude?>)">Remove</a>
    </div>
    
    </div>
<?php
}
?>
<br/>
<a href="javascript:void(0)" onclick="savePlaceMarks(<?=$this->placeMarks?>)">Save</a>
</form>
<br/>
<a href="javascript:void(0)" onclick="reset()">Reset</a>
<?php }
?>
<!--
    <h1>Create your trip11</h1>
    <form method="POST" id="createTrip">
    Title: <input type="input" name="title" id="title"><br/>
    Description: <textarea row="3" name="description" id="description"></textarea><br/>
    <input type="hidden" name="public" value="1">
    <input type="button" name="submit" value="Next" onclick="javascript: createTrip()">
    </form>
    <a href="javascript:void(0)" onclick="reset()">Reset</a>
    -->
